Skip to content

feat(google-genai): Add instrumentation for interactions API#2122

Merged
Luca Forstner (lforst) merged 11 commits into
mainfrom
lforst/genai-interactions
Jun 17, 2026
Merged

feat(google-genai): Add instrumentation for interactions API#2122
Luca Forstner (lforst) merged 11 commits into
mainfrom
lforst/genai-interactions

Conversation

@lforst

@lforst Luca Forstner (lforst) commented Jun 15, 2026

Copy link
Copy Markdown
Member

Fixes #2107

Adds support for the google interactions API which is currently in beta.

It's a bit wild because it allows for continuation of conversations and also background tasks. Neither of which we are tracking as of now (because we kinda can't).

@lforst Luca Forstner (lforst) marked this pull request as ready for review June 15, 2026 15:37

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's still other instances in this file that uses console.X, but we can address that as a follow up.

Comment thread js/src/vendor-sdk-types/google-genai.ts Outdated
total_tokens?: number;
total_cached_tokens?: number;
total_thought_tokens?: number;
total_tool_use_tokens?: number;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use total_tool_use_tokens? I don't see it referenced anywhere else.

@lforst Luca Forstner (lforst) merged commit 53f1c87 into main Jun 17, 2026
90 of 92 checks passed
@lforst Luca Forstner (lforst) deleted the lforst/genai-interactions branch June 17, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bot] Google GenAI interactions.create() not instrumented in JavaScript SDK — Braintrust docs list this as Python-only

2 participants